package com.ruoyi.system.service;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.mapper.LsYySqlServerMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LsYySqlServerService {

    @Autowired
    private LsYySqlServerMapper lsYySqlServerMapper;

    @DataSource(value = DataSourceType.SLAVE)
    public String getZyXmlStr(String patientid,int times){
        return lsYySqlServerMapper.getZyXmlStr(patientid,times);
    }

    @DataSource(value = DataSourceType.SLAVE)
    public String getMrInLab(String patientid,int times){
        return lsYySqlServerMapper.getMrInLab(patientid,times);
    }
    @DataSource(value = DataSourceType.SLAVE)
    public String getMrInspection(String patientid,int times){
        return lsYySqlServerMapper.getMrInspection(patientid,times);
    }

    @DataSource(value = DataSourceType.SLAVE)
    public String getMrOutData(String patientid,int times){
        return lsYySqlServerMapper.getMrOutData(patientid,times);
    }
}
